//
//  PaymentListModel.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/1.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class PaymentListModel: NSObject {
    var payment_name = "-999"
    var payment_code = "-999"
    var isSelect = false
    var allowTap = true
    
    
    
    init(dic : [String : AnyObject]) {
        super.init()
        
        setValuesForKeys(dic)
        
    }
    
    
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
        
    }
    
    
    //在swift中想要打印对象要以下重写属性
    override var description: String{
        let keys = ["payment_name","payment_code","allowTap"]
        let dic = dictionaryWithValues(forKeys: keys)
        return "\(dic)"
    }

}
